<include file="Public/header"/>
<link rel="stylesheet" href="__PUBLIC__/Admin/js/plugins/fancybox/jquery.fancybox.css"/>
<div class="wrapper m-t">
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <div class="text-info">
                <span class="pull-left"><i class="glyphicon glyphicon-file"></i> 工单详情</span>
                <span class="btn btn-danger btn-xs pull-right"><i class="fa fa-clock-o"></i> 提交时间：{$re.create_time|date='Y-m-d H:i:s',###}</span>
            </div>
        </div>
        <div class="ibox-content">

            <div class="form-group">
                <label class="col-lg-2 text-right">标题：</label>
                <div class="col-lg-8">{$re.title}</div>
                <div class="clearfix"></div>
            </div>
            <div class="hr-line-dashed"></div>

            <div class="form-group">
                <label class="col-lg-2 text-right">内容</label>
                <div class="col-lg-8">{$re.content}</div>
                <div class="clearfix"></div>
            </div>
            <div class="hr-line-dashed"></div>

            <div class="form-group">
                <label class="col-lg-2 text-right">经销商：</label>
                <div class="col-lg-8">{$re.company_name}</div>
                <div class="clearfix"></div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group">
                <label class="col-lg-2 text-right">提交人：</label>
                <div class="col-lg-8">{$re.nickname}</div>
                <div class="clearfix"></div>
            </div>
            <div class="hr-line-dashed"></div>

            <div class="form-group">
                <label class="col-lg-2 text-right">联系电话：</label>
                <div class="col-lg-8">{$re.linktel}</div>
                <div class="clearfix"></div>
            </div>
            <div class="hr-line-dashed"></div>

            <div class="form-group">

                <label class="col-lg-2 text-right">工单图片：</label>
                <if condition="$re.img_url1 neq null">
                    <a class="fancybox" href="{$re.img_url1}">
                        <img src="{$re.img_url1}"/>
                    </a>
                </if>

                <if condition="$re.img_url2 neq null">
                    <a class="fancybox" href="{$re.img_url2}">
                        <img src="{$re.img_url2}"/>
                    </a>
                </if>
                <div class="clearfix"></div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group">
                <label class="col-lg-2 text-right">回复内容</label>
                <div class="col-lg-8">{$re.tocontent}</div>
                <div class="clearfix"></div>
            </div>
            <div class="hr-line-dashed"></div>
            <if condition="$re.status eq 0">
                <div class="form-group">
                    <label class="col-lg-2 text-right"></label>
                    <div class="col-lg-2">
                        <a class="btn btn-primary btn-block" href="#model-info" data-toggle="modal">回复</a>
                    </div>
                    <div class="clearfix"></div>
                </div>
            </if>

        </div>
    </div>

</div>

<!--工单信息弹框-->
<div class="modal fade" id="model-info">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-body">
                <h3 class="text-center m-b text-info"><i class="fa fa-mail-reply-all"></i> 工单回复</h3>
                <div class="hr-line-dashed"></div>
                <form class="form-horizontal form-work" method="post" action="{:U('Works/replyMsg')}">
                    <div class="form-group">
                        <label class="col-lg-2 text-right"></label>
                        <input type="hidden" value="{$re.wid}" name="wid"/>
                        <input type="hidden" value="{$re.status}" name="status"/>
                        <div class="col-lg-10">
                            <textarea class="form-control" name="tocontent" rows="8" placeholder="请输入回复内容"></textarea>
                        </div>
                        <input type="submit" target-form="form-work" class=" ajax-post btn btn-info col-lg-2 col-lg-push-5 m-t" value="确认提交"/>
                        <div class="clearfix"></div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<!--详细信息弹框 end-->
<include file="Public/footer"/>
<script src="__PUBLIC__/Admin/js/plugins/fancybox/jquery.fancybox.js"></script>
<script>
    $(function(){
        $('.fancybox').fancybox({//点击查看大图
            openEffect: 'none',
            closeEffect: 'none'
        });
    })
</script>
</html>